<template>
<div>
  <h2>我是meimei开{{car}}</h2>
</div>
</template>


<script>
import PubSub from "pubsub-js";
export default {
name:"Meimei",
data(){
  return{
    car:"比亚迪"
  }
},
  mounted() {
    PubSub.subscribe("getCar",this.getCar)
  },
 methods:{
   getCar(_,value){
     this.car = value
   }
 }

}
</script>


<style></style>